<NumberInput style="width:180px" TValue="int" @bind-Value="num" Step="2" IsStrictStep></NumberInput>

@code {
    private int num = 2;
}